package com.hsgene.sample.service.api;

import com.hsgene.common.util.result.ApiResult;
import com.hsgene.sample.service.api.impl.ProductServiceImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @desc:基因检测套餐
 * @author: fuxiang
 * @date: 2018/9/18 16:05
 */
@FeignClient(value = "ms-mod-product", path = "/v1.0/genetic/testing/packages", fallback = ProductServiceImpl.class)
public interface ProductService {

    /**
     * g根据sampleId查找detail表的数量
     *
     * @param samplyId
     * @return
     */
    @GetMapping("sample/count")
    ApiResult<Integer> getCountBySamplyId(@RequestParam("samplyId") String samplyId);
}
